<?php


class Framework_DB_Table_Owner extends Framework_DB_Table_Common {

	public $tableName = 'Owner';
	
    public function __construct($db) {
   		
   		// Columns
   		$this->col = array(
	   		// Primary Key
	        'idOwner'     => array(
	            'type'    => 'integer',
	            'require' => true
	        ),
	        
	        'loginName'   => array(
	            'type'    => 'varchar',
	            'size'    => 50,
	            
	            // QuickForm Settings
	            'qf_label' => 'Login Name: ',
	            'qf_type' => 'text',
	            'qf_attrs' => array('size' => 25),
	            
	             // a set of QuickForm rules
	            'qf_rules' => array(
	            	'required' => 'This field is required.'
            	)
	            
	        ),
	        

	        'pWord'       => array(
	            'type'    => 'varchar',
	            'size'    => 50,
	            
	            // QuickForm Settings
	            'qf_label' => 'Password: ',
	            'qf_type' => 'password',
	            'qf_attrs' => array('size' => 25),
	            
	            // a set of QuickForm rules
	            'qf_rules' => array(
	            	'required' => 'This field is required.'
            	)
	        ),
	        
	       
			'dateAdded'   => array(
	            'type'    => 'integer' 
	        ),

	        'privateKey'  => array(
	        	'type'    => 'clob'
	        ),
	        	
	        'skin'	      => array(
	        	'type'    => 'varchar',
	        	'size'	  => 50
	        ),
	        
	        'cssFile'	      => array(
	        	'type'    => 'varchar',
	        	'size'	  => 255
	        ),
	        
	        // Foreign Key
	        'customCSS'	  => array(
	        	'type'    => 'integer',
	        ),
	        // Foreign Key
	        'customHeader'=> array(
	        	'type'    => 'integer'
	        ),
	        	
	        'defaultModule' =>	array(
	        	'type'    => 'varchar',
	        	'size'    => 50
	        )
	        
	    );
	    
	    // Indexes
	    $this->idx = array(
	    	'idOwner'      =>  'primary',
	    	'customHeader' =>  'normal',
	    	'customCSS'    =>  'normal'
	    );
   		
   		parent::__construct($db);
   }
	
	
}

?>